<?php

namespace App\Models;

use Illuminate\Foundation\Auth\User as AuthUser;

/**
 * App\Models\User
 *
 * @property int $id
 * @property string $username 账号
 * @property string $password 密码
 * @property string $email 邮箱
 * @property string $real_name 真实姓名
 * @property string $sex 性别 1男士 2女士
 * @property string $status 状态 1可用 0禁用
 * @property string $last_login_ip 最后登陆ip
 * @property int $last_login_time 最后登录时间
 * @property int $login_times 登录次数
 * @property \Illuminate\Support\Carbon $created_at 添加人
 * @property int $created_by 添加时间
 * @property \Illuminate\Support\Carbon $updated_at 修改时间
 * @property int $updated_by 修改人
 * @property int $deleted_at 删除时间
 * @property int $deleted_by 删除人
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User newModelQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User newQuery()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User query()
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereCreatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereCreatedBy($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereDeletedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereDeletedBy($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereEmail($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereLastLoginIp($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereLastLoginTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereLoginTimes($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User wherePassword($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereRealName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereSex($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereStatus($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUpdatedAt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUpdatedBy($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUsername($value)
 * @mixin \Eloquent
 */
class User extends AuthUser
{
    //拒绝访问字段
    protected $guarded = [];

    public $timestamps = false;

    protected $hidden = ['password'];
}
